var exec = require('child_process').exec; 
var cmdStr = 'node jsserver';

execFn = function () {
	exec(cmdStr, function(err,stdout,stderr){
	    if(err) {
	        console.log('get weather api error:'+stderr);
	    } else {  
	        console.log(stdout);
	    }
	});
}

setInterval(execFn, 1000);